package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ee.chat.common.entity.SysSensitiveWordLib;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2019-10-11
 */
public interface SysSensitiveWordLibMapper extends BaseMapper<SysSensitiveWordLib> {
    /**
     * 获取敏感词库
     * @Author Shane
     * @Date 2019/10/11 0:22
     * @return
     */
    List<String> getWords();

    /**
     * 获取敏感词列表
     * @Author AppiJ
     * @Date 2020/4/8 17:27
     * @param
     * @return
     */
    IPage<SysSensitiveWordLib> list(Page page, @Param("keyword") String keyword, @Param("status") Integer status,
                                    @Param("beginTime") Date beginTime, @Param("endTime") Date endTime);
}